//
//  HBBadgeView.h
//  HBLibary
//
//  Created by Rambo on 2018/11/4.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, HBBadgeViewStyle) {
    HBBadgeViewStyleLeft,
    HBBadgeViewStyleRight
};


@interface HBBadgeView : UIView

- (instancetype)initWithPresentView:(UIView*)presentView style:(HBBadgeViewStyle)style;

@property (nonatomic, assign) NSInteger badgeCount;

@property (nonatomic, assign) CGPoint badgePositionAdjustment;

@property (nonatomic, strong) UIColor *countColor;

@property (nonatomic, strong) UIColor *borderColor;

@property (nonatomic, assign) CGFloat cornerRadius;     ///< -1为半圆

@property (nonatomic, assign) UIEdgeInsets countInsets; ///< 默认（3,2,3,2）


- (instancetype)init UNAVAILABLE_ATTRIBUTE;
- (instancetype)initWithFrame:(CGRect)frame UNAVAILABLE_ATTRIBUTE;
+ (instancetype)new UNAVAILABLE_ATTRIBUTE;

@end
